package com.imike.akka;

import akka.dispatch.OnSuccess;

public class PrintStudentInfo<T extends Student> extends OnSuccess<T> {

    @Override
    public void onSuccess(T s) throws Throwable {
        
        Thread.sleep(1000);
        System.out.println("name:" + s.getName() + ",id:" + s.getId() + ",gender:" + s.getGender() + ",age:" + s.getAge());
        
    }

}
